<?php

/** 
 * @author Administrator
 * 
 * 
 */

class db_msgnotice extends db_base
{
	
	function __construct() {
		global $_SGLOBAL;
		parent::__construct($_SGLOBAL['db']);
	}
	
	/**
	 * 获取要发送的通知
	 */
	public function get_sendmsg()
	{
		$retarr = array();
		while($val = $db->fetch_array($db->query("select * from ".tname("notice_send"))))
		{
			$retarr[] = $val;
		}
		return $retarr;
	}
	/**
	 * 删除$id通知
	 * @param int $id
	 */
	public function del_sendmsg($id)
	{
		$db->query("delete from ".tname("notice_send")." where id=".$id);
	}
}

?>